Update Public Work
Public Works
Update Public Work
PATCH
Update Public Work
Updates an existing public work (obra). All fields are optional - only provided fields will be updated.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Authentication & Authorization
Headers
Bearer token for authentication with admin role
Must be
application/jsonPath Parameters
The unique identifier of the obra to update
Request Body
All fields are optional. Only include the fields you want to update.Fiscal year ID for this obra
Unique key for the obra (max 50 characters). Must be unique across all obras.
Name of the public work (max 255 characters)
Detailed description of the obra
Department/dependency ID responsible for this obra
Budget amount (must be positive, max 2 decimal places)
Municipality ID where the obra is located
Project type ID
Work status ID (e.g., planned, in progress, completed)
Array of location objects. This will replace existing locations.
Location ID (include for existing locations to update, omit for new locations)
Municipality ID for this specific location
Street address
Locality reference
Place reference
Geometry type:
PUNTO, RUTA, or POLIGONOGeoJSON geometry data
Display order
When updating
ubicaciones, any existing locations not included in the array will be deleted. Include the id field to update existing locations, or omit it to create new ones.Response
Returns the updated obra object with all related entities populated.Unique identifier for the obra
Sequential number within the fiscal year (unchanged)
Unique key for the obra
Name of the public work
Detailed description
Budget amount
Fiscal year ID
Department ID
Municipality ID
Project type ID
Work status ID
Array of location objects